package com.windea.study.springcloud.configclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.MessageFormat;

@RestController
public class HelloController {
	@Value("${name}")
	private String name;

	@GetMapping("/hello")
	public String hello() {
		return MessageFormat.format("hello {0}.", name);
	}
}
